<template>
    <div>{{firstlevel}}
    <button @click="childclick">向父组件传值</button>

    </div>

</template>

<script>
    export default {
        name: "secondlevel",
      props:{
          firstlevel:{
            type:String
          }
      },
      methods:{
          childclick:function(){
            this.$emit("firstlisten","儿子孝顺你")
          }
      }
    }
</script>

<style scoped>

</style>
